use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
pub(crate) struct BasicCommandSetting {
    // 是否追加到历史记录
    #[serde(default)]
    pub(crate) append_to_history: bool,
    #[serde(default)]
    pub(crate) autoclose_window_after_execute: bool,
}

impl Default for BasicCommandSetting {
    fn default() -> Self {
        Self {
            append_to_history: true,
            autoclose_window_after_execute: true,
        }
    }
}